<?php
/* ========== ########## ========== ########## ========== ########## ========== */
/*                                                                              */
/*   WHMCS v4.1.2 NULLED R4 by FLIPMODE  [ BAD SYNTAX ]                         */
/*                                                                              */
/*                             INTERNAL BAD SYNTAX NULLED VERSION: 2.5.9.6 R4   */
/*                                                                              */
/*   ALL files have been analysed, cleaned and nulled of:                       */
/*     - Call Backs  (100%)                                                     */
/*     - Link Backs (95%)                                                       */
/*     - Licensing  (100%)                                                      */
/*     - Remote Links + URL's                                                   */
/*                                                                              */
/*   WHMCS v4.1.2 RELEASED: 4th November 2009                                   */
/*    -> FIRST v4.1.2 NULL R1: 19th November 2009                               */
/*    -> UPDATED v4.1.2 NULL R4: 27th November 2009                             */
/*                                                                              */
/*   TESTING + VERIFICATION::                                                   */
/*     Files Cleaned, Nulled, Checked, Verified By:                             */
/*      -> FLIPMODE!                                                            */
/*     Decoded By:                                                              */
/*      -> FLIPMODE! + Unknown Decoder                                          */
/*     Tested By:                                                               */
/*      -> FLIPMODE!, LeetWolf, and 12 Anonymous Users...                       */
/*     WHMCS 4.1.2 Supplied By:                                                 */
/*      -> WHM CompleteShit Coder @ WHMCS.com                                   */
/*                                                                              */
/*                                                                              */
/*   IMPORTANT NOTE::                                                           */
/*   PLEASE NOTE THIS IS FOR TRIAL PURPOSES ONLY!                               */
/*                          LIKE IT? THEN BUY IT!                               */
/*                                                                              */
/* ========== ########## ========== ########## ========== ########## ========== */


require '../dbconnect.php';
require '../includes/functions.php';
require '../includes/adminfunctions.php';
$aInt = new adminInterface ('Browser');
$aInt->title = 'Browser';
$aInt->sidebar = 'browser';
$aInt->icon = 'browser';
if ($action == 'delete')
{
	delete_query ('tblbrowserlinks', array ('id' => $id));
	header ('Location: ' . $_SERVER['PHP_SELF']);
	exit ();
}

if ($action == 'add')
{
	insert_query ('tblbrowserlinks', array ('name' => $sitename, 'url' => html_entity_decode ($siteurl)));
	header ('Location: ' . $_SERVER['PHP_SELF']);
	exit ();
}

$result = select_query ('tblbrowserlinks', '', '', 'name', 'ASC');
while ($data = mysql_fetch_array ($result))
{
	$browserlinks[] = $data;
}

$aInt->assign ('browserlinks', $browserlinks);
$content = '<iframe width="1000" height="580" src="http://www.google.com" name="brwsrwnd"></iframe>';
$jscode = 'function doDelete(id) {
    if (confirm("Are you sure you want to delete this bookmark?")) {
        window.location=\'' . $_SERVER['PHP_SELF'] . '?action=delete&id=\'+id;
        return false;
    }
}
';
$aInt->content = $content;
$aInt->jquerycode = $jquerycode;
$aInt->jscode = $jscode;
$aInt->display ();
?>